.class Les/xy$w0;
.super Ljava/lang/Object;
.source "EditMenuItemProvider.java"

# interfaces
.implements Landroid/view/MenuItem$OnMenuItemClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Les/xy;->d()V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic a:Les/xy;


# direct methods
.method constructor <init>(Les/xy;)V
    .locals 0

    .line 1
    iput-object p1, p0, Les/xy$w0;->a:Les/xy;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onMenuItemClick(Landroid/view/MenuItem;)Z
    .locals 10

    .line 1
    iget-object p1, p0, Les/xy$w0;->a:Les/xy;

    invoke-static {p1}, Les/xy;->a(Les/xy;)Lcom/estrongs/android/pop/view/FileExplorerActivity;

    move-result-object p1

    invoke-virtual {p1}, Lcom/estrongs/android/pop/view/FileExplorerActivity;->b0()Ljava/lang/String;

    move-result-object p1

    const-string v0, "copyto"

    invoke-static {v0, p1}, Lcom/estrongs/android/statistics/c;->b(Ljava/lang/String;Ljava/lang/String;)V

    .line 2
    iget-object p1, p0, Les/xy$w0;->a:Les/xy;

    invoke-static {p1}, Les/xy;->b(Les/xy;)Ljava/util/List;

    move-result-object p1

    .line 3
    invoke-interface {p1}, Ljava/util/List;->size()I

    move-result v0

    const/4 v1, 0x1

    if-nez v0, :cond_0

    .line 4
    iget-object p1, p0, Les/xy$w0;->a:Les/xy;

    invoke-static {p1}, Les/xy;->a(Les/xy;)Lcom/estrongs/android/pop/view/FileExplorerActivity;

    move-result-object p1

    invoke-virtual {p1}, Landroid/app/Activity;->getBaseContext()Landroid/content/Context;

    move-result-object p1

    const v0, 0x7f1104a3

    const/4 v2, 0x0

    invoke-static {p1, v0, v2}, Lcom/estrongs/android/ui/view/d;->a(Landroid/content/Context;II)V

    return v1

    .line 5
    :cond_0
    iget-object v0, p0, Les/xy$w0;->a:Les/xy;

    invoke-static {v0}, Les/xy;->c(Les/xy;)Ljava/lang/String;

    move-result-object v0

    .line 6
    invoke-static {v0}, Lcom/estrongs/android/util/h0;->i2(Ljava/lang/String;)Z

    move-result v2

    const v3, 0x7f11003a

    if-nez v2, :cond_3

    invoke-static {v0}, Lcom/estrongs/android/util/h0;->v1(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_1

    goto :goto_1

    .line 7
    :cond_1
    new-instance v7, Les/xy$w0$a;

    invoke-direct {v7, p0, p1}, Les/xy$w0$a;-><init>(Les/xy$w0;Ljava/util/List;)V

    const/4 v0, -0x1

    .line 8
    sget-boolean v2, Lcom/estrongs/android/pop/j;->n:Z

    if-eqz v2, :cond_2

    const/4 v0, -0x2

    const/4 v8, -0x2

    goto :goto_0

    :cond_2
    const/4 v8, -0x1

    .line 9
    :goto_0
    invoke-static {}, Lcom/estrongs/android/pop/c;->b()Ljava/lang/String;

    move-result-object v9

    .line 10
    iget-object v0, p0, Les/xy$w0;->a:Les/xy;

    invoke-static {v0}, Les/xy;->a(Les/xy;)Lcom/estrongs/android/pop/view/FileExplorerActivity;

    move-result-object v4

    const v5, 0x7f080741

    iget-object v0, p0, Les/xy$w0;->a:Les/xy;

    .line 11
    invoke-static {v0}, Les/xy;->a(Les/xy;)Lcom/estrongs/android/pop/view/FileExplorerActivity;

    move-result-object v0

    invoke-virtual {v0, v3}, Landroid/app/Activity;->getString(I)Ljava/lang/String;

    move-result-object v6

    .line 12
    invoke-virtual/range {v4 .. v9}, Lcom/estrongs/android/pop/view/FileExplorerActivity;->a(ILjava/lang/String;Landroid/content/DialogInterface$OnClickListener;ILjava/lang/String;)V

    goto :goto_2

    .line 13
    :cond_3
    :goto_1
    iget-object v0, p0, Les/xy$w0;->a:Les/xy;

    invoke-static {v0}, Les/xy;->a(Les/xy;)Lcom/estrongs/android/pop/view/FileExplorerActivity;

    move-result-object v0

    iget-object v2, p0, Les/xy$w0;->a:Les/xy;

    invoke-static {v2}, Les/xy;->a(Les/xy;)Lcom/estrongs/android/pop/view/FileExplorerActivity;

    move-result-object v2

    invoke-virtual {v2, v3}, Landroid/app/Activity;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v2, p1, v1}, Lcom/estrongs/android/pop/view/FileExplorerActivity;->a(Ljava/lang/String;Ljava/util/List;Z)V

    .line 14
    :goto_2
    :try_start_0
    iget-object v0, p0, Les/xy$w0;->a:Les/xy;

    invoke-static {v0}, Les/xy;->a(Les/xy;)Lcom/estrongs/android/pop/view/FileExplorerActivity;

    move-result-object v0

    invoke-virtual {v0}, Lcom/estrongs/android/pop/view/FileExplorerActivity;->b0()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/estrongs/android/statistics/c;->a(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    .line 15
    invoke-static {p1}, Lcom/estrongs/android/pop/utils/p;->c(Ljava/util/List;)Ljava/lang/String;

    move-result-object v4

    const-wide/16 v5, 0x0

    .line 16
    invoke-interface {p1}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object p1

    move-wide v6, v5

    :goto_3
    invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_4

    invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/estrongs/fs/g;

    .line 17
    invoke-interface {v0}, Lcom/estrongs/fs/g;->length()J

    move-result-wide v8

    add-long/2addr v6, v8

    goto :goto_3

    :cond_4
    const-string v2, "copy_to_c"

    const/4 v5, 0x1

    const/4 v8, 0x0

    .line 18
    invoke-static/range {v2 .. v8}, Lcom/estrongs/android/pop/utils/p;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;ZJI)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :catch_0
    return v1
.end method
